package network;

import java.io.Serializable;

public class SocketData implements Serializable{
	
	static final long serialVersionUID = 100000;
	
	String command;//로그인,로그아웃,서버중지,서버시작
	String message;//대화내용
	String user;//메시지 작성자
	Object obj;//이모티콘,첨부파일,미디어파일..
	int index;//이미지의 위치번호
	
	public SocketData(String com, String user, String msg, Object o){
		this.command = com;
		this.message = msg;
		this.user = user;
		this.obj = o;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getCommand() {
		return command;
	}

	public void setCommand(String command) {
		this.command = command;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}
	
}
